C:\wamp\www\phpld 4.2.1\PhpLD\templates\Professional\submit_cat.tpl
C:\wamp\www\phpld42\PhpLD\templates\Professional\submit_cat.tpl
  1 {capture name="title"} - {l}Submit Category{/l}{/capture}
  2 {capture assign="in_page_title"}{l}Submit Category{/l}{/capture}
  3 {capture assign="description"}{l}Submit a new category to the directory{/l}{/capture}
  4 
  5 {include file="header.tpl"}
  6 {include file="top_bar.tpl"}
  7 
  8 {include file="validation.tpl" form_id="submit_form" validators=$validators}
  9 
 10 {literal}
 11 <script type="text/javascript">
    
 12 jQuery(document).ready(function(){
 13     jQuery('#PARENT_ID').change(function() {
 14         valid_obj.submit_form.rules.TITLE.remote.data.PARENT_ID = jQuery('#PARENT_ID').val();
    
 15     });
 16 });
 17 
 18 </script>
 19 {/literal}
 20 
 21 {strip}
 22 
 23 {if $smarty.const.DISABLE_SUBMIT == 1 && $is_admin neq 1} 
 24 <table width="96%" border="0" align="center" cellpadding="4" cellspacing="4" class="sp_area">   
 25  <tr>      
 26   <td>         
 27     <h2>{l}Closed{/l}</h2>      
 28   </td>   
 29  </tr>   
 30  <tr>      
 31     <td>         
 32      {l}We are sorry but category submissions are closed.{/l}<br />         {$disablereason}</a>      
 33      </td>   
 34  </tr> 
 35 </table> 
 36 <br /> 
 37 {else}
 38 
 39 {if empty($regular_user_details.ID) || (($uLevel != 1) && ($uLevel != 3))}
 40     <table border="0" class="formPage">
 41        <tr>
 42           <td>
 43              <h3>{l}Information{/l}</h3>
 44           </td>
 45        </tr>
 46        <tr>
 47           <td>
 48              {l}You must be logged in as Admin or Super Editor to submit a new category.{/l}
 49              <br />
 50              {l}No account yet?{/l} <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register new user{/l}">{l}Create one{/l}</a>
 51           </td>
 52        </tr>
 53     </table>
 54 {else}
 55     <form method="post" action="" id="submit_form">
 56     <table border="0" class="formPage">
 57     {if $error}
 58        <tr><td colspan="2" class="err">
 59           {l}An error occured while saving the category.{/l}
 60        </td></tr>
 61     {/if}
 62     
 63     {if $posted}
 64        <tr><td colspan="2" class="msg">
 65        {l}Category submitted{/l}{if $waiting_approval eq 1}{l} and awaiting approval{/l}{/if}.<br />
 66        {l}Submit another category.{/l}
 67        </td></tr>
 68     {/if}
 69 
 70 <tr>
 71    <td class="label underlined" align='left' colspan="2">{l}Fields marked with a {/l}<span class='req'>*</span>{l} are required.{/l}</td>
 72    </tr>
 73   <tr>
 74    <td class="label"><span class='req'>*</span>{l}Title{/l}:</td>
 75    <td class="field">
 76       <input type="text" name="TITLE" value="{$TITLE|escape|trim}" size="40" maxlength="{$smarty.const.TITLE_MAX_LENGTH}" class="text" />
 77    </td>
 78   </tr>
 79   
 80   {if $ENABLE_REWRITE and $symbolic ne 1}
 81   <tr>
 82      <td class="label"><span class='req'>*</span>{l}URL Title{/l}:</td>
 83      <td class="field">
 84         <input type="text" id="TITLE_URL" name="TITLE_URL" size="40" value="{$TITLE_URL|escape|trim}" maxlength="255" class="text" />
 85      </td>
 86   </tr>
 87   {/if}
 88   {if $symbolic ne 1}
 89   <tr>
 90     <td class="label">{l}Description{/l}:</td>
 91     <td class="field">
 92      <textarea name="DESCRIPTION" rows="3" cols="37" class="text" {formtool_count_chars name="DESCRIPTION" limit=$smarty.const.DESCRIPTION_MAX_LENGTH alert=true}>{$DESCRIPTION|escape|trim}</textarea>
 93         <br />
 94         {l}Limit{/l}: <input type="text" name="DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$DescriptionLimit|trim}" />{if isset ($allowedTags)} <small>Allowed html tags: {$allowedTags|wordwrap:30:"<br />\n"}</small>{/if} <br />{if isset ($allowedAttr)}<small>Allowed html attribute tags: {$allowedAttr|wordwrap:30:"<br />\n"}</small>{/if}
 95     </td>
 96   </tr>
 97   {/if}
 98   <tr>
 99    <td class="label">{l}Parent Category{/l}:</td>
100    <td class="field">
101       {* Load category selection *}
102       {include file="category_select_parent.tpl"}
103    </td>
104  </tr>
105  <tr>
106    <td class="label">{l}RSS feed:{/l}</label></td>
107    <td class="field">
108        <input type="text" id="RSS_URL" name="RSS_URL" value="{$RSS_URL|escape|trim}" maxlength="255" size="40" class="text" />
109    </td>
110  </tr>
111  
112  {if $symbolic eq 1}
113  <tr>
114     <td class="label required"><label for="SYMBOLIC_ID">{l}Symbolic category for{/l}:</label></td>
115     <td class="smallDesc">
116        {html_options options=$categs selected=$SYMBOLIC_ID name="SYMBOLIC_ID" id="SYMBOLIC_ID"}
117     </td>
118  </tr>
119  {/if}
120 
121  <tr>
122     <td class="label required"><label for="STATUS">{l}Status{/l}:</label></td>
123     <td class="smallDesc">
124         {html_options options=$stats selected=$STATUS name="STATUS" id="STATUS"}
125     </td>
126  </tr>
127   
128  {if $symbolic ne 1 and $smarty.const.ENABLE_META_TAGS eq 1}
129    <tr>
130       <td class="label">{l}META Keywords{/l}:</td>
131       <td class="field">
132         <input type="text" name="META_KEYWORDS" value="{$META_KEYWORDS|escape|trim}" size="40" maxlength="2000" class="text" />
133         <p class="small">{l}Separate keywords by comma.{/l}</p>
134       </td>
135    </tr>
136    <tr>
137       <td class="label">{l}META Description{/l}:</td>
138       <td class="field">
139          <textarea name="META_DESCRIPTION" rows="3" cols="30" class="text" {formtool_count_chars name="META_DESCRIPTION" limit=$smarty.const.META_DESCRIPTION_MAX_LENGTH alert=true}>{$META_DESCRIPTION|escape|trim}</textarea>
140          <br />
141          {l}Limit{/l}: <input type="text" name="META_DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$MetaDescriptionLimit|trim}" />
142       </td>
143    </tr>
144   {/if}
145 
146   {if $symbolic ne 1}
147   <tr>
148   <td class="label">{l}Page Title{/l}:</td>
149   <td class="field">
150   <textarea name="TDESCRIPTION" id="TDESCRIPTION" rows="6" cols="37" class="text" >{$TDESCRIPTION|trim|escape}</textarea>
151   </td>
152   </tr>
153   {/if} 
154   
155   {if $symbolic ne 1}
156   <tr>
157   <td class="label">{l}Main area Content for the Category{/l}:</td>
158   <td class="field">
159     {include file="rte.tpl" NAME="CATCONTENT" VALUE=$CATCONTENT}
160   </td>
161   </tr>
162   {/if}
163   
164   <tr>
165       <td colspan="2" class="buttons">
166          {if !$review_cat and !$remove_cat}
167             <input type="submit" name="continue" value="{l}Continue{/l}" class="btn" />
168          {else}
169             <input type="submit" name="edit" value="{l}Continue{/l}" class="btn" />
170          {/if}
171       </td>
172   </tr>
173 </table>
174 <input type="hidden" name="formSubmitted" value="1" />
175 </form>
176 {/if}
177 {/if}
178 {include file="footer.tpl"}
179 {/strip}
  1 {capture name="title"} - {l}Submit Category{/l}{/capture}
  2 {capture assign="in_page_title"}{l}Submit Category{/l}{/capture}
  3 {capture assign="description"}{l}Submit a new category to the directory{/l}{/capture}
  4 
  5 {include file="header.tpl"}
  6 {include file="top_bar.tpl"}
  7 
  8 {include file="validation.tpl" form_id="submit_form" validators=$validators}
  9 
 10 {literal}
 11 <script type="text/javascript">
 12 jQuery(function($) {
 13     $(document).ready(function(){
 14         $('#PARENT_ID').change(function() {
 15            valid_obj.submit_form.rules.TITLE.remote.data.PARENT_ID = $('#PARENT_ID').val();
 16         });
 17     });
 18 });
    
 19 </script>
 20 {/literal}
 21 
 22 {strip}
 23 
 24 {if $smarty.const.DISABLE_SUBMIT == 1 && $is_admin neq 1} 
 25 <table width="96%" border="0" align="center" cellpadding="4" cellspacing="4" class="sp_area">   
 26  <tr>      
 27   <td>         
 28     <h2>{l}Closed{/l}</h2>      
 29   </td>   
 30  </tr>   
 31  <tr>      
 32     <td>         
 33      {l}We are sorry but category submissions are closed.{/l}<br />         {$disablereason}</a>      
 34      </td>   
 35  </tr> 
 36 </table> 
 37 <br /> 
 38 {else}
 39 
 40 {if empty($regular_user_details.ID) || (($uLevel != 1) && ($uLevel != 3))}
 41     <table border="0" class="formPage">
 42        <tr>
 43           <td>
 44              <h3>{l}Information{/l}</h3>
 45           </td>
 46        </tr>
 47        <tr>
 48           <td>
 49              {l}You must be logged in as Admin or Super Editor to submit a new category.{/l}
 50              <br />
 51              {l}No account yet?{/l} <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register new user{/l}">{l}Create one{/l}</a>
 52           </td>
 53        </tr>
 54     </table>
 55 {else}
 56     <form method="post" action="" id="submit_form">
 57     <table border="0" class="formPage">
 58     {if $error}
 59        <tr><td colspan="2" class="err">
 60           {l}An error occured while saving the category.{/l}
 61        </td></tr>
 62     {/if}
 63     
 64     {if $posted}
 65        <tr><td colspan="2" class="msg">
 66        {l}Category submitted{/l}{if $waiting_approval eq 1}{l} and awaiting approval{/l}{/if}.<br />
 67        {l}Submit another category.{/l}
 68        </td></tr>
 69     {/if}
 70 
 71 <tr>
 72    <td class="label underlined" align='left' colspan="2">{l}Fields marked with a {/l}<span class='req'>*</span>{l} are required.{/l}</td>
 73    </tr>
 74   <tr>
 75    <td class="label"><span class='req'>*</span>{l}Title{/l}:</td>
 76    <td class="field">
 77       <input type="text" name="TITLE" value="{$TITLE|escape|trim}" size="40" maxlength="{$smarty.const.TITLE_MAX_LENGTH}" class="text" />
 78    </td>
 79   </tr>
 80   
 81   {if $ENABLE_REWRITE and $symbolic ne 1}
 82   <tr>
 83      <td class="label"><span class='req'>*</span>{l}URL Title{/l}:</td>
 84      <td class="field">
 85         <input type="text" id="TITLE_URL" name="TITLE_URL" size="40" value="{$TITLE_URL|escape|trim}" maxlength="255" class="text" />
 86      </td>
 87   </tr>
 88   {/if}
 89   {if $symbolic ne 1}
 90   <tr>
 91     <td class="label">{l}Description{/l}:</td>
 92     <td class="field">
 93      <textarea name="DESCRIPTION" rows="3" cols="37" class="text" {formtool_count_chars name="DESCRIPTION" limit=$smarty.const.DESCRIPTION_MAX_LENGTH alert=true}>{$DESCRIPTION|escape|trim}</textarea>
 94         <br />
 95         {l}Limit{/l}: <input type="text" name="DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$DescriptionLimit|trim}" />{if isset ($allowedTags)} <small>Allowed html tags: {$allowedTags|wordwrap:30:"<br />\n"}</small>{/if} <br />{if isset ($allowedAttr)}<small>Allowed html attribute tags: {$allowedAttr|wordwrap:30:"<br />\n"}</small>{/if}
 96     </td>
 97   </tr>
 98   {/if}
 99   <tr>
100    <td class="label">{l}Parent Category{/l}:</td>
101    <td class="field">
102       {* Load category selection *}
103       {include file="category_select_parent.tpl"}
104    </td>
105  </tr>
106  <tr>
107    <td class="label">{l}RSS feed:{/l}</label></td>
108    <td class="field">
109        <input type="text" id="RSS_URL" name="RSS_URL" value="{$RSS_URL|escape|trim}" maxlength="255" size="40" class="text" />
110    </td>
111  </tr>
112  
113  {if $symbolic eq 1}
114  <tr>
115     <td class="label required"><label for="SYMBOLIC_ID">{l}Symbolic category for{/l}:</label></td>
116     <td class="smallDesc">
117        {html_options options=$categs selected=$SYMBOLIC_ID name="SYMBOLIC_ID" id="SYMBOLIC_ID"}
118     </td>
119  </tr>
120  {/if}
121 
122  <tr>
123     <td class="label required"><label for="STATUS">{l}Status{/l}:</label></td>
124     <td class="smallDesc">
125         {html_options options=$stats selected=$STATUS name="STATUS" id="STATUS"}
126     </td>
127  </tr>
128   
129  {if $symbolic ne 1 and $smarty.const.ENABLE_META_TAGS eq 1}
130    <tr>
131       <td class="label">{l}META Keywords{/l}:</td>
132       <td class="field">
133         <input type="text" name="META_KEYWORDS" value="{$META_KEYWORDS|escape|trim}" size="40" maxlength="2000" class="text" />
134         <p class="small">{l}Separate keywords by comma.{/l}</p>
135       </td>
136    </tr>
137    <tr>
138       <td class="label">{l}META Description{/l}:</td>
139       <td class="field">
140          <textarea name="META_DESCRIPTION" rows="3" cols="30" class="text" {formtool_count_chars name="META_DESCRIPTION" limit=$smarty.const.META_DESCRIPTION_MAX_LENGTH alert=true}>{$META_DESCRIPTION|escape|trim}</textarea>
141          <br />
142          {l}Limit{/l}: <input type="text" name="META_DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$MetaDescriptionLimit|trim}" />
143       </td>
144    </tr>
145   {/if}
146 
147   {if $symbolic ne 1}
148   <tr>
149   <td class="label">{l}Page Title{/l}:</td>
150   <td class="field">
151   <textarea name="TDESCRIPTION" id="TDESCRIPTION" rows="6" cols="37" class="text" >{$TDESCRIPTION|trim|escape}</textarea>
152   </td>
153   </tr>
154   {/if} 
155   
156   {if $symbolic ne 1}
157   <tr>
158   <td class="label">{l}Main area Content for the Category{/l}:</td>
159   <td class="field">
160     {include file="rte.tpl" NAME="CATCONTENT" VALUE=$CATCONTENT}
161   </td>
162   </tr>
163   {/if}
164   
165   <tr>
166       <td colspan="2" class="buttons">
167          {if !$review_cat and !$remove_cat}
168             <input type="submit" name="continue" value="{l}Continue{/l}" class="btn" />
169          {else}
170             <input type="submit" name="edit" value="{l}Continue{/l}" class="btn" />
171          {/if}
172       </td>
173   </tr>
174 </table>
175 <input type="hidden" name="formSubmitted" value="1" />
176 </form>
177 {/if}
178 {/if}
179 {include file="footer.tpl"}
180 {/strip}
Legend:
Added(0,5)
Deleted(1,0)
Changed(5)
Changed in changed(3)